    <script type="text/javascript" src="/js/patch.js"></script>      			
		<script>
	   function gopreview() {
	     location.href="/project/newProjectView.jsp?id=$!projectId";
	   }
		</script>
		<form action="/project/addProjectTmpItem.do" method="post" id="form1">
		  <input type="hidden" name="projectId" value="$!projectId" />
		  <input type="hidden" name="oldTreeId" value="$!scoreTree.id" />
			<div class="MainDiv">
				<table width="99%" border="0" cellpadding="0" cellspacing="0"
					class="CContent">
					<tr>
						<th class="tablestyle_title">
							评分子项设置
						</th>
					</tr>
					<tr>
						<td class="CPanel">
							<table border="0" cellpadding="0" cellspacing="0"
								style="width: 100%">
								<tr>
									<td align="left">
										<br />
										操作说明：
										<br />
									</td>
								</tr>
								<TR>
									<TD width="100%">
										<fieldset>
											<legend>
												评分子项设置
											</legend>
											<table border="0" cellpadding="2" cellspacing="1"
												style="width: 100%">
												<tr>
													<td width="6%" align="right" nowrap>
														选择项目:
													</td>
													<td width="25%">
                            <select name="treeId" id="treeId">
                                $cateTree
                            </select>													
														&nbsp;
														<label>
															<input type="button" id="selectbtn" value="确定" />
														</label>
													</td>
													<td>
													   #if($!percent!=0)
													   <span style="color:red">本项目分值为$!percent,请设置评分子项时保证分值总和与评分项的分值相同</span>
													   #end
													</td>
												</tr>
											</table>
											<table width="100%" border="1" cellpadding="4"
												cellspacing="1">
												<tr>
													<td width="10%" align="center" bgcolor="#EEEEEE">
														全选
														<label>
															<input type="checkbox" name="selectAll" id="selectAll"/>
														</label>
													</td>
													<td width="10%" align="center" bgcolor="#EEEEEE">
														所属项目
													</td>
													<td width="49%" align="center" bgcolor="#EEEEEE">
														评价名称
													</td>
													<td width="31%" align="center" bgcolor="#EEEEEE">
														分值设定
													</td>
												</tr>
												#foreach($item in $itemList)
												  #if($itemScoreMap.containsKey($item.id))
                        <tr align="center">
                          <td width="10%" height="20" align="center" #if($itemScoreMap.containsKey($item.id)) style="background-color:#fee" #end>
                            <input type="checkbox" name="selectItems" value="$item.id" checked/>
                          </td>
                          <td width="10%" #if($itemScoreMap.containsKey($item.id)) style="background-color:#fee" #end>$scoreTree.cateName</td>
                          <td width="49%" align="left" #if($itemScoreMap.containsKey($item.id)) style="background-color:#fee" #end>$item.itemName</td>
                          <td align="center" #if($itemScoreMap.containsKey($item.id)) style="background-color:#fee" #end><input name="itemScore_$item.id" type="text" value="$itemScoreMap.get($item.id)" /></td>                       
                        </tr>   												  
												  #else
                        <tr align="center">
                          <td width="10%" height="20" align="center">
                            <input type="checkbox" name="selectItems" value="$item.id" />
                          </td>
                          <td width="10%">$scoreTree.cateName</td>
                          <td width="49%" align="left">$item.itemName</td>
                          <td align="center"><input name="itemScore_$item.id" type="text" value="0" /></td>                       
                        </tr>   										  
												  #end
												#end
											</table>
											#if($itemList.size()>0)
											<label>
												<input type="submit" name="save" id="save" value="保存"/>
											</label>
											<input type="button" name="preview" value="预览" onclick="gopreview()" />
											<br />
											#end
										</fieldset>
									</TD>
								</TR>
								<TR>
									<TD>
										&nbsp;
									</TD>
								</TR>
							</TABLE>
						</td>
					</tr>
					<TR>
						<TD height="50px" colspan="2">
							&nbsp;
						</TD>
					</TR>
				</TABLE>
				</td>
				</tr>
				</table>
			</div>
		</form>